[9.0] Move more utilities to DIRACCommon#8290
Merged
fstagni merged 3 commits intoDIRACGrid:integrationfrom Sep 3, 2025
Merged
Conversation
Move getNewStatus and getStartAndEndTime functions from DIRAC JobStatusUtility to DIRACCommon as stateless utility functions. The original DIRAC module now imports these functions from DIRACCommon. The migrated functions intentionally retain references to undefined dependencies (TimeUtilities, JobStatus) as part of the stateless utility migration strategy.
…Common Migrate three core modules from DIRAC to DIRACCommon to enable shared usage: - Move TimeUtilities.py with gLogger references to DIRACCommon/Core/Utilities/ - Move StateMachine.py with State and StateMachine classes to DIRACCommon/Core/Utilities/ - Move JobStatus.py with constants and JobsStateMachine to DIRACCommon/WorkloadManagementSystem/Client/ DIRAC modules now re-export from DIRACCommon for backward compatibility. Update JobStatusUtility.py imports to use migrated DIRACCommon modules. Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
46aaeda to
365c718
Compare
990efee to
adf73ca
Compare
- Move JDL, List utilities from DIRAC.Core.Utilities to DIRACCommon - Migrate JobManifest and JobDBUtils from WorkloadManagementSystem to DIRACCommon - Add Pydantic-based JobModel with validation for job descriptions - Update DIRAC modules to import from DIRACCommon maintaining backward compatibility - Add diraccfg and pydantic dependencies to support enhanced functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
adf73ca to
c815663
Compare
fstagni
approved these changes
Sep 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BEGINRELEASENOTES
*Core
CHANGE: Move TimeUtilities to DIRACCommon
CHANGE: Move StateMachine to DIRACCommon
CHANGE: Move JDL utilities to DIRACCommon
CHANGE: Move List utilities to DIRACCommon
*WorkloadManagement
CHANGE: Move JobStatus to DIRACCommon
CHANGE: Move JobsStateMachine to DIRACCommon
CHANGE: Move JobStatusUtility to DIRACCommon
CHANGE: Move JobManifest to DIRACCommon
CHANGE: Move JobDBUtils to DIRACCommon
FIX: Correctly update JDL defaults when CS changes
ENDRELEASENOTES
Closes #7426